

#ifndef XTASK_PERIPHERAL_H__
#define XTASK_PERIPHERAL_H__


#include <stdint.h>
#include <stdbool.h>

//#include "FreeRTOS.h"
//#include "task.h"
#include "msg.h"


void xtask_peripheral_create(void);

bool xtask_peripheral_send_msg(msg_t* msg);

bool xtask_peripheral_send_msg_from_ISR(msg_t* msg);

//#define xtask_peripheral_send_msg_from_ISR xtask_peripheral_send_msg

void xtask_send_msg_G_SENSOR(uint16_t sub_type);


void xtask_send_msg_heartrate_process(void);
void xtask_send_msg_heartrate(uint16_t sub_type);


void xtask_send_msg_touch_panel_data_update(void);

void xtask_send_msg_touch_panel( uint16_t sub_type ) ; 

void xtask_send_msg_touch_panel_data_process(void);

#endif

